
export const jump = ({path='', data = {}, type = 'navigateTo'} ={}) => {
	let url = `/pages/${path}/${path}`
	Object.keys(data).forEach((key, ind) => {
		url = url + `${ind?'&&':'?'}${key}=${data[key]}`
	})
	uni[type]({ 
		url: url,
		animationType: 'fade-in',
		fail(err) {
			console.log(err)
		} 
	})
}